<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- js Start -->
<!--[if lte IE 9]>
  <script src="${basePath }/js/common/lteie9.js"></script>
<![endif]-->

<script charset="utf-8" src="${basePath }/js/manage/jquery-2.2.4.min.js" type="text/javascript"></script>
<script charset="utf-8" src="${basePath }/js/manage/jquery.backstretch.min.js" type="text/javascript"></script>
<script charset="utf-8" src="${basePath }/js/common/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

<script src="${basePath}/js/manage/amazeui.min.js"></script>
<script src="${basePath}/js/manage/layer.js" type="text/javascript"></script>
<script src="${basePath}/js/manage/jquery.loading.js"></script>
<script src="${basePath}/js/tagsinput-master/amazeui.tagsinput.js"></script>

<script type="text/javascript">
// 弹出多个layer 多个layer同级别
function openLayerUrl(url, width, height) {
    parent.layer.open({
	    type: 2,
	    title: false,
	    closeBtn: false,
	    shadeClose: false,
	    shade: 0.6,
	    border: [0],
	    area: [width <= 0 ? "auto" : width + 'px', height <= 0 ? "auto" : height + 'px'],
	    content: url,
	})
};

//jquery form序列化转换为json对象
(function($){  
	$.fn.serializeJson=function(){  
		var serializeObj={};  
		var array=this.serializeArray();  
		var str=this.serialize();  
		$(array).each(function(){  
			if(serializeObj[this.name]){  
				if($.isArray(serializeObj[this.name])){  
					serializeObj[this.name].push(this.value);  
				}else{  
					serializeObj[this.name]=[serializeObj[this.name],this.value];  
				}  
			}else{  
				serializeObj[this.name]=this.value;   
			}  
		});  
		return serializeObj;  
	};  
})(jQuery);

</script>
<!-- js End -->